package com.jd.oneday.month3;

/**
 * 定义一个双链表的节点对象
 */


public class Day13_LinkedListNode {

    private int id;
    private String name;
    private int age;
    private Day13_LinkedListNode next;
    private Day13_LinkedListNode pre;

    public Day13_LinkedListNode(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public Day13_LinkedListNode getNext() {
        return next;
    }

    public Day13_LinkedListNode getPre() {
        return pre;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setNext(Day13_LinkedListNode next) {
        this.next = next;
    }

    public void setPre(Day13_LinkedListNode pre) {
        this.pre = pre;
    }

    @Override
    public String toString() {
        return "Day13_LinkedListNode{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
